# NOT RUN {
#Use the MMPP sample data included in the package to test the regular Gibbs sampler
data("TestdataMMPP")
Test <- TestdataMMPP
test_samples <- GibbsSampler(y_0T=Test$Bins,
M=Test$M,
Inter = Test$Inter,
alpha_Gamma_rate = Test$alpha_Gamma_rate,
alpha_Gamma_Q = Test$alpha_Gamma_Q,
beta_Gamma_Q = Test$beta_Gamma_Q,
beta_Gamma_rate = Test$beta_Gamma_rate,
B=1,N=2,messages=FALSE)
test_plot <- MMPPplot(Sampler_Output = test_samples,
title = "Example Plot")
plot(test_plot)
#Use the flow sample data included in the package to test the hierarchical model
data("Testdataflows")
Test <- Testdataflows
test_samples <- GibbsSampler_hierarchical(y_0T=Test$Bins,
M=Test$M,
Inter = Test$Inter,
alpha_Gamma_rate = Test$alpha_Gamma_rate,
alpha_Gamma_Q = Test$alpha_Gamma_Q,
beta_Gamma_Q = Test$beta_Gamma_Q,
beta_Gamma_rate = Test$beta_Gamma_rate,
alpha_Gamma_Y=Test$alpha_Gamma_Z,
beta_Gamma_Y=Test$beta_Gamma_Z,
B=1,N=2,messages=FALSE)
# }
Run the code above in your browser using DataLab